package org.suk.dp.composite;

/**
 * Description: 部件类<br/>
 * @version V1.0  2017/6/21 13:31  by 石冬冬(dongdong.shi@ucarinc.com) - Heil Hitler
 */
public abstract class Component {
    protected String name;

    public Component(String name) {
        this.name = name;
    }

    abstract void add(Component component);
    abstract void remove(Component component);
    abstract void display(int depth);
}

